import React from 'react'
import ReactDOM from 'react-dom/client';
import {ConfigProvider} from 'antd';
import App from './App'
import './assets/css/index.css'
import {BrowserRouter} from "react-router-dom";
import {PersistGate} from 'redux-persist/integration/react'
import {Provider} from "react-redux";
import store, {persistor} from "./store/index.js";
ReactDOM.createRoot(document.getElementById('root')).render(
    <ConfigProvider
        theme={{
            token: {
                colorPrimary: "#ec7259",
                colorInfo: "#ec7259"
            },
        }}
    >
        <Provider store={store}>
            <PersistGate loading={null} persistor={persistor}>
                <BrowserRouter>
                    <App/>
                </BrowserRouter>
            </PersistGate>
        </Provider>
    </ConfigProvider>
)
